import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NzMessageService }                   from 'ng-zorro-antd';
import { ModalHelper }                        from "@delon/theme";
import { ProRestPasswordComponent }           from "./rest-password/rest-password.component";

@Component({
    selector       : 'app-account-settings-security',
    templateUrl    : './security.component.html',
    changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ProAccountSettingsSecurityComponent
{
    constructor( public msg: NzMessageService, private modal: ModalHelper )
    {
    }
    
    editPassword()
    {
        this.modal.createStatic(ProRestPasswordComponent, null, { size: "md" })
            .subscribe()
    }
}
